package chapter04; /**
 * Created by V5470-I5 on 2016/3/15.
 */
import java.util.Scanner;
public class Guess {
    public static void main(String[] args){
        Scanner scanner =new Scanner(System.in);
        int number =(int) (Math.random()*10);
        int guess;
        do{
            System.out.print("猜数字(0~9):");
            guess =scanner.nextInt();
        }
        while(guess !=number);
        System.out.printf("猜中啦");
    }
}
